package cz.proks.easyhelpdesk.api.model;

import java.util.LinkedList;
import java.util.List;

import cz.proks.easyhelpdesk.api.model.base.AnIdentifiableModel;

public class HelpdeskMember extends AnIdentifiableModel {    
    private Long userId;
    private Long helpdeskId;
    private List<HelpdeskRole> helpdeskRoles;
    
    public Long getUserId() {
        return userId;
    }
    public void setUserId(Long memberId) {
        this.userId = memberId;
    }
    public Long getHelpdeskId() {
        return helpdeskId;
    }
    public void setHelpdeskId(Long helpdeskId) {
        this.helpdeskId = helpdeskId;
    }
    public List<HelpdeskRole> getHelpdeskRoles() {
        if (helpdeskRoles == null)
            helpdeskRoles = new LinkedList<HelpdeskRole>();
        
        return helpdeskRoles;
    }
    public void setHelpdeskRoles(List<HelpdeskRole> helpdeskRoles) {
        this.helpdeskRoles = helpdeskRoles;
    }
    @Override
    public String toString() {
        return "[id=" + getId() + ", userId=" + userId + ", helpdeskId=" + helpdeskId + ", helpdeskRoles=" + helpdeskRoles + "]";
    }
    
    
}
